Skip to content

Bump mime-types from 3.6.2 to 3.7.0 in /builder #2677

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 7, 2025

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github May 7, 2025

Bumps mime-types from 3.6.2 to 3.7.0.

Changelog

Sourced from mime-types's changelog.

3.7.0 / 2025-05-07

  • Deprecated MIME::Type#priority_compare. In a future release, this will be will be renamed to MIME::Type#<=>. This method is used in tight loops, so there is no warning message for either MIME::Type#priority_compare or MIME::Type#<=>.

  • Improved the performance of sorting by eliminating the complex comparison flow from MIME::Type#priority_compare. The old version shows under 600 i/s, and the new version shows over 900 i/s. In sorting the full set of MIME data, there are three differences between the old and new versions; after comparison, these differences are considered acceptable.

  • Simplified the default compare implementation (MIME::Type#<=>) to use the new MIME::Type#priority_compare operation and simplify the fallback to String comparison. This may result in exceptions where there had been none, as explicit support for several special values (which should have caused errors in any case) have been removed.

  • When sorting the result of MIME::Types#type_for, provided a priority boost if one of the target extensions is the type's preferred extension. This means that for the case in #148[issue-148], when getting the type for foo.webm, the type video/webm will be returned before the type audio/webm, because .webm is the preferred extension for video/webm but not audio/webm (which has a preferred extension of .weba). Added tests to ensure MIME types are retrieved in a stable order (which is alphabetical).

Commits
  • afa0fd6 Update changelog with correct version
  • a134b29 Prep for release
  • a05d39b Improve comparison performance with pre-computed priority
  • 4a06000 Deprecate MIME::Types.new(Array)
  • ac2e0d4 Bump astral-sh/setup-uv from 6.0.0 to 6.0.1
  • 918c7f8 Bump github/codeql-action from 3.28.16 to 3.28.17
  • 09cce35 Bump ruby/setup-ruby from 1.235.0 to 1.237.0
  • fc2289c Bump reviewdog/action-typos from 1.17.2 to 1.17.3
  • dbff580 Bump astral-sh/setup-uv from 5.4.2 to 6.0.0
  • 10d3784 Bump ruby/setup-ruby from 1.233.0 to 1.235.0
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [mime-types](https://github.com/mime-types/ruby-mime-types) from 3.6.2 to 3.7.0.
- [Changelog](https://github.com/mime-types/ruby-mime-types/blob/main/CHANGELOG.md)
- [Commits](mime-types/ruby-mime-types@v3.6.2...v3.7.0)

---
updated-dependencies:
- dependency-name: mime-types
  dependency-version: 3.7.0
  dependency-type: indirect
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file ruby Pull requests that update Ruby code labels May 7, 2025
@ledermann-bot ledermann-bot enabled auto-merge (squash) May 7, 2025 23:24
@ledermann-bot ledermann-bot merged commit 10240a5 into main May 7, 2025
2 checks passed
@ledermann-bot ledermann-bot deleted the dependabot/bundler/builder/mime-types-3.7.0 branch May 7, 2025 23:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file ruby Pull requests that update Ruby code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant